import json
import os


def analysis_json(file):
    '''读取转换json

    :param _type_ file: _description_
    :return _type_: _description_
    '''

    with open(os.path.join(os.getcwd(), f'data\\{file}'), "r", encoding="utf-8") as f:
        temp = json.loads(f.read())

        ls:list = [val for val in temp.values()] if isinstance(temp, dict) else temp

        return ls
